package edu.spec.xhd.fragment;

import android.content.Context;
import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import edu.spec.xhd.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class FragmentRight extends Fragment {

    private static final String TAG = FragmentRight.class.getSimpleName();//等价于"FragmentRight"

    public FragmentRight() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        Log.e(TAG, "onCreateView: 3");
        return inflater.inflate(R.layout.fragment_right, container, false);
    }

    @Override
    public void onAttach(@NonNull Context context) {
        super.onAttach(context);
        Log.e(TAG, "onAttach: 1");
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.e(TAG, "onCreate: 2");
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        Log.e(TAG, "onActivityCreated: 4");
    }

    @Override
    public void onStart() {
        super.onStart();
        Log.e(TAG, "onStart: 5");
    }

    @Override
    public void onResume() {
        super.onResume();
        Log.e(TAG, "onResume: 6");
    }

    @Override
    public void onPause() {
        super.onPause();
        Log.e(TAG, "onPause: 7" );
    }

    @Override
    public void onStop() {
        super.onStop();
        Log.e(TAG, "onStop: 8");
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        Log.e(TAG, "onDestroyView: 9");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.e(TAG, "onDestroy: 10");
    }

    @Override
    public void onDetach() {
        super.onDetach();
        Log.e(TAG, "onDetach: 11");
    }
}
